package com.haiheng.library_base.http

import com.google.gson.Gson

/**
 *
 * @Des:
 * @Author: hwz
 * @Date:2022/4/15 0015
 * @Version: 1.0
 */
open class HttpResponse  @JvmOverloads constructor(
    var errorCode: String = "",
    var errorMsg: String = "",
    var id: String = "",
    var requestObject: String = "",
    var operation: String = "",
    var message: String = "",
    var code: String = "",
    var msg: String = "",
    var isSuccess: String = "",
    var iTotalRecords: Int = 0,
    var iTotalDisplayRecords: Int = 0,
){

     open fun  toJson(): String{
        return Gson().toJson(this)
    }
}